package net.goutalk.glcs.module.test;

import com.xxl.job.core.context.XxlJobHelper;
import com.xxl.job.core.handler.IJobHandler;

/**
 *  xxljob Glue 案例代码
 */
public class DemoGlueJobHandler extends IJobHandler {


	@Override
	public void execute() throws Exception {
//		IDemoService demoService = SpringContextUtils.getBean(IDemoService.class);
//		Demo demo = new Demo();
//		demo.setFieldLong(1L);
//		demo.setCreateDate(LocalDateTime.now());
//		demo.setDeleteMark(0);
//		demo.setEnabledMark(1);
//		demo.setCreateUserId(1L);
//		demoService.save(demo);

//		demoService.removeById(1513057739164565506L);

		//获取参数
		String jobParam = XxlJobHelper.getJobParam();

		XxlJobHelper.handleSuccess("执行完成" + jobParam);
	}

}
